# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=canari
pkgver=3.3.10
pkgrel=7
groups=('blackarch' 'blackarch-forensic' 'blackarch-recon' 'blackarch-scanner')
pkgdesc='Maltego rapid transform development and execution framework.'
url='https://pypi.org/project/canari/#files'
arch=('any')
license=('GPL2')
depends=('python2' 'python2-argparse' 'python2-flask' 'python2-mr.bob'
         'python2-safedexml' 'python2-pyasn1' 'python2-twistedx'
         'python2-pyopenssl' 'python2-boto3' 'python2-lxml' 'python2-six'
         'python2-future' 'python2-click' 'python2-colorama' 'python2-stringcase'
         'python2-service-identity' 'python2-setuptools')
makedepends=('python2-setuptools' 'python2-pip')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$pkgname-$pkgver.tar.gz")
sha512sums=('38e920d36ec3cee27ec34f260c51bf7d3ac664187bd144b43e4cabd062bb621b6298fa4467d41d5d7cd3549e0b8b29e5840d31e5263823b3b57c25c570cc6940')

build() {
  cd "$pkgname-$pkgver"

  #pip2 install pyasn1 # temporal workaround to avoid setuptool issues

  python2 setup.py build
}

package() {
  cd "$pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

